{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    {% block custom_tdk %}{% endblock %}
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-barstyle" content="black-translucent">
    <link rel="apple-touch-icon" href="{% static '' %}aside/images/logo.png">
    <meta name="apple-mobile-web-app-title" content="Flatkit">
    <meta name="mobile-web-app-capable" content="yes">
    <link rel="shortcut icon" sizes="196x196" href="{% static '' %}aside/images/logo.png">
    <link rel="stylesheet" href="{% static '' %}aside/css/animate.css/animate.min.css" type="text/css">
    <link rel="stylesheet" href="{% static '' %}aside/css/glyphicons/glyphicons.css" type="text/css">
    <link rel="stylesheet" href="{% static '' %}aside/css/font-awesome/css/font-awesome.min.css" type="text/css">
    <link rel="stylesheet" href="{% static '' %}aside/css/material-design-icons/material-design-icons.css" type="text/css">
    <link rel="stylesheet" href="{% static '' %}aside/css/ionicons/css/ionicons.min.css" type="text/css">
    <link rel="stylesheet" href="{% static '' %}aside/css/simple-line-icons/css/simple-line-icons.css" type="text/css">
    <link rel="stylesheet" href="{% static '' %}aside/css/bootstrap/dist/css/bootstrap.min.css" type="text/css">
    <link rel="stylesheet" href="{% static '' %}aside/css/styles/app.min.css">
    <link rel="stylesheet" href="{% static '' %}aside/css/styles/font.css" type="text/css">
</head>
<body>
<input type="hidden" id="exchangeRate" value="{{ exchangeRate }}"/>
<div class="app" id="app">
<div id="aside" class="app-aside fade nav-dropdown black">
    <div class="navside dk" data-layout="column">
        <div class="navbar no-radius"><a href="/" class="navbar-brand">
            <div data-ui-include="'{% static '' %}aside/images/logo.svg'"></div>
            <img src="{% static '' %}aside/images/logo.png" alt="." class="hide"> <span class="hidden-folded inline">WanFeng</span></a></div>
        <div data-flex class="hide-scroll">
            <nav class="scroll nav-stacked nav-stacked-rounded nav-color">
                <ul class="nav" data-ui-nav>
                    <li><a href="{% url 'erp:cpanel' %}" class="b-danger"><span class="nav-icon text-white no-fade"><i class="ion-home"></i></span> <span class="nav-text">后台首页</span></a></li>
                    <li><a class="b-success"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon text-white no-fade"><i class="ion-plus-circled"></i></span> <span class="nav-text">我的工作</span></a>
                        <ul class="nav-sub nav-mega nav-mega-3">
                            <li><a href="{% url 'erp:workDevBasic' %}"><span class="nav-text">开发基本信息</span></a></li>
                            <li><a href="#"><span class="nav-text">成本核算</span></a></li>
                            <li><a href="#"><span class="nav-text">违禁词查询</span></a></li>
                        </ul>
                    </li>
                    <li><a class="b-info"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon text-white no-fade"><i class="ion-ios-photos"></i></span> <span class="nav-text">库存管理</span></a>
                        <ul class="nav-sub nav-mega">
                            <li><a href="#"><span class="nav-text">我的库存</span></a></li>
                            <li><a href="#"><span class="nav-text">所有库存</span></a></li>
                            <li><a href="#"><span class="nav-text">库存大全</span></a></li>
                            <li><a href="#"><span class="nav-text">在线商品库存</span></a></li>
                            <li><a href="#"><span class="nav-text">供应商管理</span></a></li>
                        </ul>
                    </li>
                    <li><a class="b-warning"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon text-white no-fade"><i class="ion-checkmark-circled"></i></span> <span class="nav-text">订单管理</span></a>
                        <ul class="nav-sub">
                            <li><a class="p-l-1" href="{% url 'erp:orderIndex' %}"> <span class="nav-icon"><i class="ion-pie-graph"></i></span> <span class="nav-text">全部订单</span></a>

                            <li><a class="p-l-1"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon"><i class="ion-ios-person"></i></span> <span class="nav-text">人工处理</span></a>
                                <ul class="nav-sub nav-mega nav-mega-3">
                                    <li><a href="{% url 'erp:orderIndex' %}?orderMsg=1"><span class="nav-text">有留言订单</span></a></li>
                                    <li><a href="{% url 'erp:orderIndex' %}?noMatchingSku=1"><span class="nav-text">无对应SKU</span></a></li>
                                    <li><a href="{% url 'erp:orderIndex' %}?declareCheck=0"><span class="nav-text">报关信息不全</span></a></li>
                                    <li><a href="{% url 'erp:orderIndex' %}?addressCheck=0"><span class="nav-text">收货信息不全</span></a></li>
                                    <li><a href="{% url 'erp:orderIndex' %}?isCanMergeOrder=1"><span class="nav-text">可合并订单</span></a></li>
                                    <li><a href="{% url 'erp:orderIndex' %}?noSelectLog=1"><span class="nav-text">未选择物流</span></a></li>
                                </ul>
                            </li>
                            <li><a class="p-l-1"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon"><i class="ion-checkmark-circled"></i></span> <span class="nav-text">确定单号</span></a>
                                <ul class="nav-sub nav-mega">
                                    <li><a href="{% url 'erp:orderIndex' %}?applying=0"><span class="nav-text">单号未申请</span></a></li>
                                    <li><a href="{% url 'erp:orderIndex' %}?applying=2"><span class="nav-text">单号申请中</span></a></li>
                                    <li><a href="{% url 'erp:orderIndex' %}?applying=1"><span class="nav-text">申请单号失败</span></a></li>

                                </ul>
                            </li>
                            <li><a class="p-l-1"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon"><i class="ion-android-print"></i></span> <span class="nav-text">等待打单</span></a>
                                <ul class="nav-sub">
                                    <li><a href="{% url 'erp:orderIndex' %}?waitPrint=1"><span class="nav-text">待打单(有货)</span></a></li>
                                    <li><a href="#"><span class="nav-text">待打单(缺货)</span></a></li>
                                </ul>
                            </li>
                            <li><a class="p-l-1"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon"><i class="ion-ios-person"></i></span> <span class="nav-text">已发货</span></a>
                                <ul class="nav-sub nav-mega nav-mega-3">
                                    <li><a href="{% url 'erp:orderIndex' %}?send=SELLER_SEND_GOODS"><span class="nav-text">发货成功</span></a></li>
                                    <!--
                                    <li><a href="#"><span class="nav-text">虚拟发货</span></a></li>
                                    <li><a href="#"><span class="nav-text">合并发货</span></a></li>
                                    <li><a href="#"><span class="nav-text">拆分发货</span></a></li>
                                    -->
                                    <li><a href="#"><span class="nav-text">纠纷订单</span></a></li>
                                </ul>
                            </li>
                            <li><a class="p-l-1"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon"><i class="ion-information-circled"></i></span> <span class="nav-text">异常订单</span></a>
                                <ul class="nav-sub">
                                    <li><a href="{% url 'erp:orderIndex' %}?isShelve=1"><span class="nav-text">已搁置</span></a></li>
                                    <li><a href="#"><span class="nav-text">退款</span></a></li>
                                    <li><a href="#"><span class="nav-text">重新发包裹</span></a></li>
                                    <li><a href="#"><span class="nav-text">换面单</span></a></li>
                                </ul>
                            </li>
                            <li><a class="p-l-1" href="{% url 'erp:orderIndex' %}?status=PLACE_ORDER_SUCCESS"> <span class="nav-icon"><i class="ion-pie-graph"></i></span> <span class="nav-text">未付款</span></a></li>
                            <li><a class="p-l-1" href="{% url 'erp:orderIndex' %}?status=RISK_CONTROL"> <span class="nav-icon"><i class="ion-pie-graph"></i></span> <span class="nav-text">风控中</span></a></li>

                        </ul>
                    </li>
                    <li><a class="b-default"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon text-white no-fade"><i class="ion-android-bus"></i></span> <span class="nav-text">物流管理</span></a>
                        <ul class="nav-sub">
                            <li><a class="p-l-1"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon"><i class="ion-information-circled"></i></span> <span class="nav-text">渠道设置</span></a>
                                <ul class="nav-sub">
                                    <li><a href="{% url 'erp:smtLogisticsChannelSettings' %}"><span class="nav-text">速卖通线上</span></a></li>
                                    <li><a href="{% url 'erp:yanwenLogisticsChannelSettings' %}"><span class="nav-text">燕文下线</span></a></li>
                                </ul>
                            </li>
                            <li><a href="{% url 'erp:freightCalculate' %}"><span class="nav-text">运费计算</span></a></li>

                            <li><a href="#"><span class="nav-text">物流跟踪</span></a></li>

                        </ul>
                    </li>
                    <li><a class="b-success"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon text-white no-fade"><i class="ion-ios-cart"></i></span> <span class="nav-text">商品管理</span></a>
                        <ul class="nav-sub">
                            <li><a href="#"><span class="nav-text">开发产品列表</span></a></li>
                            <li><a href="#"><span class="nav-text">所有开发产品</span></a></li>
                            <li><a href="{% url 'erp:productStockList' %}"><span class="nav-text">产品库存</span></a></li>
                            <li><a href="{% url 'erp:getProductlibraryList' %}"><span class="nav-text">产品库</span></a></li>
                            <li><a href="{% url 'erp:product' %}"><span class="nav-text">在线产品列表</span></a></li>

                        </ul>
                    </li>
                    <li><a class="b-warn"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon text-white no-fade"><i class="ion-chatbubble-working"></i></span> <span class="nav-text">客服管理</span></a>
                        <ul class="nav-sub">
                            <li><a href="{% url 'erp:message' %}"><span class="nav-text">处理消息</span></a></li>
                            <li><a href="#"><span class="nav-text">重点关注</span></a></li>
                            <li><a href="#"><span class="nav-text">消息模板</span></a></li>
                            <li><a href="#"><span class="nav-text">黑名单</span></a></li>
                            <li><a href="#"><span class="nav-text">老客户</span></a></li>
                        </ul>
                    </li>
                    <li><a class="b-danger"><span class="nav-caret"><i class="fa fa-caret-down"></i></span> <span class="nav-icon text-white no-fade"><i class="ion-social-yen"></i></span> <span class="nav-text">利润管理</span></a>
                        <ul class="nav-sub">
                            <li><a href="#"><span class="nav-text">财务总览</span></a></li>
                            <li><a href="#"><span class="nav-text">销售统计</span></a></li>
                            <li><a href="#"><span class="nav-text">支出管理</span></a></li>
                            <li><a href="#"><span class="nav-text">采购明细</span></a></li>
                        </ul>
                    </li>

                </ul>
            </nav>
        </div>
        <div data-flex-no-shrink>
            <div class="nav-fold dropup"><a data-toggle="dropdown">
                <div class="pull-left">
                    <div class="inline"><span class="avatar w-40 grey text-capitalize">{% if request.user.last_name %}{{ request.user.last_name }}{% else %}{{ request.user.username |slice:"3" }}{% endif %}</span></div>
                    <img src="{% static '' %}aside/images/a0.jpg" alt="..." class="w-40 img-circle hide"></div>
                <div class="clear hidden-folded p-x"><span class="block _500 text-muted">{% if request.user.first_name %}{{ request.user.first_name }}{% else %}{{ request.user.username }}{% endif %}</span>
                    <div class="progress-xxs m-y-sm lt progress">
                        <div class="progress-bar info" style="width: 15%"></div>
                    </div>
                </div>
            </a>
                <div class="dropdown-menu w dropdown-menu-scale"><a class="dropdown-item" href="{% url 'profile' %}#aboutme"><span>个人资料</span></a> <a class="dropdown-item" href="{% url 'changePassword' %}"><span>修改密码</span></a> <a class="dropdown-item" href="#"><span>收件箱</span></a> <a class="dropdown-item" href="#"><span>消息处理</span></a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">帮助?</a> <a class="dropdown-item" href="{% url 'signout' %}">退出</a></div>
            </div>
        </div>
    </div>
</div>
<div id="content" class="app-content box-shadow-z2 bg pjax-container" role="main">
<div class="app-header white bg b-b">
    <div class="navbar" data-pjax><a data-toggle="modal" data-target="#aside" class="navbar-item pull-left hidden-lg-up p-r m-a-0"><i class="ion-navicon"></i></a>
        <div class="navbar-item pull-left h5" id="pageTitle">{% block page-title %}{% endblock %}</div>

        <ul class="nav navbar-nav pull-right">
            <li class="nav-item pos-stc-xs">
                <a class="nav-link clear" id="showSide" data-toggle="tooltip" data-placement="bottom" title="折叠/展开侧栏"><i class="fa fa-dedent fa-fw m-r-xs"></i></a>
            </li>
            <li class="nav-item pos-stc-xs">
                <a class="nav-link clear" data-toggle="tooltip" data-placement="bottom" title="全屏显示" data-ui-fullscreen data-target="fullscreen"><i class="fa fa-expand fa-fw m-r-xs"></i></a>
            </li>
            <li class="nav-item dropdown pos-stc-xs"><a class="nav-link clear" data-toggle="dropdown"><i class="ion-android-notifications-none w-24"></i> <span class="label up p-a-0 danger"></span></a>
                <div class="dropdown-menu pull-right w-xl animated fadeIn no-bg no-border no-shadow">
                    <div class="scrollable" style="max-height: 220px">
                        <ul class="list-group list-group-gap m-a-0">
                            <li class="list-group-item dark-white box-shadow-z0 b"><span class="pull-left m-r"><img src="{% static '' %}aside/images/a0.jpg" alt="..." class="w-40 img-circle"></span> <span class="clear block">新增订单［<a href="#" class="text-primary">78023645468911</a>］<br>
                    <small class="text-muted">10 分钟前</small></span></li>
                            <li class="list-group-item dark-white box-shadow-z0 b"><span class="pull-left m-r"><img src="{% static '' %}aside/images/a1.jpg" alt="..." class="w-40 img-circle"></span> <span class="clear block">产品SKU［32601740388］<a href="#" class="text-primary">缺货</a><br>
                    <small class="text-muted">2 小时前</small></span></li>
                            <li class="list-group-item dark-white text-color box-shadow-z0 b"><span class="pull-left m-r"><img src="{% static '' %}aside/images/a2.jpg" alt="..." class="w-40 img-circle"></span> <span class="clear block">订单［78023645468911］ 有<a href="#" class="text-primary">留言</a><br>
                    <small class="text-muted">1 天前</small></span></li>
                        </ul>
                    </div>
                </div>
            </li>
            <li class="nav-item dropdown"><a class="nav-link clear" data-toggle="dropdown"><span class="avatar w-32"><img src="{% static '' %}aside/images/a3.jpg" class="w-full rounded" alt="..."></span></a>
                <div class="dropdown-menu w dropdown-menu-scale pull-right"><a class="dropdown-item" href="{% url 'profile' %}#aboutme"><span>个人档案</span></a> <a class="dropdown-item" href="{% url 'changePassword' %}"><span>修改密码</span></a> <a class="dropdown-item" href="#"><span>收件箱</span></a> <a class="dropdown-item" href="#"><span>消息</span></a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">帮助?</a> <a class="dropdown-item" href="{% url 'signout' %}">退出</a></div>
            </li>
        </ul>
    </div>
</div>

{% block app-footer %}

{% endblock %}

<div class="app-body">

    {% block app-body %}{% endblock %}

</div>
</div>
</div>
<div id="switcher">
    <div class="switcher dark-white" id="sw-theme"><a href="#" data-ui-toggle-class="active" data-ui-target="#sw-theme" class="dark-white sw-btn"><i class="fa fa-gear text-muted"></i></a>
        <div class="box-header"><a href="{% url 'buy' %}" class="btn btn-xs rounded danger pull-right">BUY</a> <strong>主题设置</strong></div>
        <div class="box-divider"></div>
        <div class="box-body">
            <p id="settingLayout" class="hidden-md-down">
                <label class="md-check m-y-xs" data-target="folded">
                    <input type="checkbox">
                    <i></i> <span>收起侧栏</span></label>
                <label class="m-y-xs pointer" data-ui-fullscreen data-target="fullscreen"><span class="fa fa-expand fa-fw m-r-xs"></span> <span>全屏显示</span></label>
            </p>
            <p>汇率设置:</p>
            <div class="clearfix">
                <input type="text" value="{{ exchangeRate }}" class="form-control inputPrice" id="setExchangeRate"/>
            </div>
            <p>Colors:</p>
            <p data-target="color">
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-md">
                    <input type="radio" name="color" value="primary">
                    <i class="primary"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-md">
                    <input type="radio" name="color" value="accent">
                    <i class="accent"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-md">
                    <input type="radio" name="color" value="warn">
                    <i class="warn"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-md">
                    <input type="radio" name="color" value="success">
                    <i class="success"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-md">
                    <input type="radio" name="color" value="info">
                    <i class="info"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-md">
                    <input type="radio" name="color" value="warning">
                    <i class="warning"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-md">
                    <input type="radio" name="color" value="danger">
                    <i class="danger"></i></label>
            </p>
            <p>Themes:</p>
            <div data-target="bg" class="clearfix">
                <label class="radio radio-inline m-a-0 ui-check ui-check-lg">
                    <input type="radio" name="theme" value="">
                    <i class="light"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-lg">
                    <input type="radio" name="theme" value="grey">
                    <i class="grey"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-lg">
                    <input type="radio" name="theme" value="dark">
                    <i class="dark"></i></label>
                <label class="radio radio-inline m-a-0 ui-check ui-check-color ui-check-lg">
                    <input type="radio" name="theme" value="black">
                    <i class="black"></i></label>
            </div>


        </div>
    </div>
</div>
</div>
<script src="{% static '' %}aside/scripts/app.js"></script>
</body>
</html>